package io.cordova.hellocordova;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;

import com.fingersoft.feature.webview.WebViewManager;
import com.fingersoft.im.R;

public class CordovaTestActivity extends AppCompatActivity {

    @Override
    protected void onResume() {
        super.onResume();
        WebViewManager.Companion.openWebView(this, "file:///android_asset/www/ApiTest.html", "test");
//        CordovaWebViewActivity.Companion.startActivity(this, "http://192.168.2.61:8089/feature-plugins/src/main/assets/www/ApiTest.html?_ijt=b37cbr241eqf1gop26tesqiv6o", "test");
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_cordova_test);
    }

    public static void start(Context context) {
        Intent intent = new Intent(context, CordovaTestActivity.class);
        context.startActivity(intent);
    }
}
